#include "ros/ros.h"
#include <map>

int main(int argc, char *argv[]) {
    ros::init(argc, argv, "publisher");
    ros::NodeHandle nodeHandle;
    nodeHandle.setParam("yukariAge", 17);
    // 设置参数，该参数被上传到RosCore并等待调用
    std::map<std::string, int> ages;
    ages["Reimu"] = 17;
    ages["Kaguya"] = 1000000007;
    nodeHandle.setParam("maidAges", ages);
    // 其他的很多数据类型也是支持的
    return 0;
}